<script lang="ts" setup>
import {ref, onMounted} from "vue";
import {useRoute} from "vue-router";

const route = useRoute();
const id = ref(route.params.id || 1);

const title = ref("产品");
onMounted(() => {
  // console.log(id.value);
});

</script>

<template>
  {{title}}--{{id}}
</template>

<style scoped>

</style>